import { Image, Button, Toast } from 'antd-mobile'
import { getQrcode } from '@api'
import { useEffect, useState } from 'react'
import './index.scss'

const Show = () => {
    const [image, setImage] = useState('')
    
        useEffect(() => {
            getData()
        }, [])
    
        const getData = () => {
            getQrcode().then(({ success, data }) => {
                if (success && data) {
                    setImage(data)
                }
            })
        }
    return (
        <div className="Show">
            <Image src={image}></Image>
        </div>
    )
}

export default Show
